Part Number Hot Search : 
DB106 SMDB03C HYB18 XACS104 158X0 V630ME09 7NK90Z T3904
Product Description
Full Text Search
 

To Download TK68HC24P Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  tekmos ? preliminary tk68hc24 pru www.tekmos.com 8/ 21/99 port replacement unit (pru) for 6811 ? type microprocessors features exact replacement for the motorola mc68hc24 pru utilizes the tekmos 6824 core replaces ports b and c of 6811 type microprocessors. the chip-select function allows multiple tk68hc24s to be used in systems requiring multiple parallel ports. 3 ? 5.5 volt operation. 0 ? 5 mhz operation. supports all handshake and i/o modes. available in 40 pdip (p) and 44 plcc (fn) versions. description the tk68hc24 is an exact replacement of the motorola 68hc24. the tk68hc24 is designed to replace the port b and port c functions of 6811 ? type microprocessors. these functions are lost when the 6811 type microprocessors are operated in the expanded mode. the tk68hc24 has an address re-mapping feature that allows multiple tk68hc24s to be used within a single system. pinout r/wn e as mode csn nc nc a15 a14 a13 a12 40 1 2 3 4 5 6 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 pc0 pc1 pc2 pc3 pc5 pc6 pc7 vdd pb6 pb5 pb4 pb3 pb2 pb1 pb0 pb7 strb nc stra nc resetn ad0 ad1 ad2 ad3 ad4 ad5 ad6 ad7 nc vss pc4 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 tk68hc24fn 44 plcc irqn strb r/wn e as mode csn 40 29 30 31 32 33 34 35 36 37 38 39 pc0 pc1 pc2 pc3 pc5 pc6 pc7 vdd pb3 pb2 pb1 pb0 stra resetn ad0 ad1 ad2 ad3 ad4 ad5 ad6 ad7 vss pc4 7 8 9 10 11 12 13 14 15 16 17 TK68HC24P 40 pdip irqn 6 5 4 3 2 1 18 19 20 a14 a12 a13 a15 nc pb7 pb6 pb5 pb4 28 27 26 25 24 23 22 21
tekmos tk68hc24 pru 2 www.tekmos.com 8/21/99 pinout pdip 40 plcc 44 name type function 1 2 iotest n / c not used in the tekmos design 2-5 3-6 a15 ? a12 input address lines for port mapping. 6 7 stra input handshake input 7-14 8-11, 13-16 pc0 ? pc7 bidirec tional general purpose input / output port 15 17 vdd supply positive supply 16 18 strb output handshake output 17-24 19-22, 24-27 pb7 ? pb0 output general purpose output port 25 28 irqn output interrupt request, open drain, active low 26 29 vss supply ground 27-34 30-33, 35-38 ad7 - ad0 bidirec tional multiplexed address / data bus from the 68hc11 35 39 resetn input reset, active low 36 40 rwn input read / write control signal 37 41 e input enable ? clock 38 42 as input address strobe 39 43 mode input selects operating mode at reset. 40 44 csn input chip select pin descriptions iotest no connect the iotest pin was removed from the 68hc24 design several years ago. however, it continued to be referenced on the data sheet. this pin is a true no connect, and may be either tied to a convenient supply, used for routing other signals, or it may be left floating. a15 ? a12 high order address - inputs these are the high order address lines from the processor. they are latched by the rising edge of the e clock. the value on the address lines is compared against the contents of the init register. a match, combined with an active chip select selects the part during the current bus cycle. ad7 ? ad0 address and data bus - bidirectional these pins are a multiplexed address / data bus. during the first portion of the bus cycle, when the e clock is low, the ad bus contains the address. the address is strobed into an internal address latch by the ale pin. during the second portion of the bus cycle, when the e clock is high, the ad pins carry data. depending on the state of the rwn pin, the part will either read the bus, or drive the bus. stra strobe a ? input this pin is used as an input handshake signal by port c. in the simple strobed and input handshake modes, stra is used to latch data into the portcl register. in the output handshake mode, stra is used to acknowledge the output data. the ega bit in the pioc register controls which edge of stra is active. strb strobe b - output the strb pin serves as an output strobe for port b when the part is operating in the simple strobed i/o mode. in the handshake mode, strb is a handshake output line. in the input handshake mode, the pin serves as a ready line, inhibiting the external device from strobing data into port c. in the output handshake mode, strb indicates that new data has been written to port b by the
tekmos tk68hc24 pru 3 www.tekmos.com 8/21/99 processor. the pls bit of the pioc register controls whether this pin pulses or remains at a level. pb7 ? pb0 port b, bits 7 to 0 - outputs an 8 bit, general purpose output port. strb pulses with each write to port b in the simple strobed mode of operation. pc7 ? pc0 port c, bits 7 to 0 - bidirectional this is a general purpose, 8-bit bidirectional port. each bit may be individually programmed by the ddrc register to be either an input or an output. input data is read from the portcl register, while output data is written to the port c register. the stra pin serves as a handshake signal for this port. irqn interrupt request ? open drain, active low output this pin provides the interrupt signal back to the processor. it is a logical nand of the staf and stai bits in the pioc register. as address strobe - input this pin serves to de-multiplex the address form the data on the ad bus. the falling edge of as causes the address to be latched internally within the tk68hc24. mode mode select - input the mode select pin is sampled at the rising edge of reset. a zero puts the chip into a special emulation mode, while a one leaves it in the normal operating mode. csn / chip select input, active low this is the device chip select. the tk68hc24 is selected when 1) csn is low, 2) the contents of the init register match address lines a12 ? a15, and 3) when the lower order address lines (ad0 ? ad7) select an internal register. the csn signal is latched on the rising edge of the e clock. rwn read / write - input determines whether data is being read from, or is being written to the device. e enable - input the e (enable) pin is the clock for the tk68hc24. the e clock runs at the external bus rate of the 6811 microprocessor. resetn active low input the resetn pin provides a synchronous reset to the part. it must remain low for 2 e clock cycles in order to be recognized.
tekmos tk68hc24 pru 4 www.tekmos.com 8/21/99 figure 1. block diagram port b ddrc init hprio port c portcl i/o buffer i/o buffer init register write control interrupt controller pioc port c controller strobe b controller data buffers address latch chip select logic magnitude comparator irqn stra mode port b port a a15 a14 a13 a12 e resetn rwn csn as multiplexed address / data strb
tekmos tk68hc24 pru 5 www.tekmos.com 8/21/99 register bit map register addr bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 pioc xx02 staf stai cwom hnds oin pls ega invb portc xx03 pc7 pc6 pc5 pc4 pc3 pc2 pc1 pc0 portb xx04 pb7 pb6 pb5 pb4 pb3 pb2 pb1 pb0 portcl xx05 pcl7 pcl6 pcl5 pcl4 pcl3 pcl2 pcl1 pcl0 ddrc xx07 ddrc7 ddrc6 ddrc5 ddrc4 ddrc3 ddrc2 ddrc1 ddrc0 hprio xx3c - smod - irv - - - - init xx3d - - - - reg3 reg2 reg1 reg0 internal register addressing a 64-byte address space is reserved for internal register access, although not all 64 addresses are used. the absolute locations where these addresses will appear are specified by the reset initialization software and chip select logic provided by the end user (see init register). internal register bit descriptions the following list summarizes the registers, the bit mnemonics and their associated functions. parallel i/o control register (pioc) reset value = 00000011 the pioc register controls both the register handshaking and the modes of port c. staf ? bit 7, read only. the staf (strobe a interrupt status flag) bit is set when a selected active edge is detected by the stra input pin. this bit is anded with the stai bit (b6) to generate interrupts (irqn). this bit is cleared by reset to indicate no interrupt request is pending. there is an automatic clearing mechanism on staf which depends on the operating mode selected. there are three basic strobed modes, controlled, by the hnds oin bits. when hnds is zero, the simple strobed mode is specified and the oin bit has no meaning or effect. in this mode, staf flag is automatically set by detection of the selected edge on the stra input pin indicating that new data is available in the port c latch. the staf flag is automatically cleared by a read of the pioc register (with staf set) followed by a read of the portcl latch register. when hnds is one and oin is zero, the input handshake mode is specified. in this mode, the staf flag is automatically set by detection of the selected edge on the stra input pin indicating that new data is available in the port c latch. the staf bit is automatically cleared by a read of the pioc register (with staf set) followed by a read of the portcl latch register. when hnds is one and oin is one, the output handshake mode is specified. in this mode, the staf flag is automatically set by detection of the selected edge on the stra input pin indicating that data from port c has been accepted by the external system. the staf flag is automatically cleared by a read of the pioc register (with staf set) followed by a write to the portcl latch register. stai ? bit 6, read / write the stai (strobe a interrupt enable mask) bit is used to specify whether or not a hardware interrupt sequence is to be requested whenever staf is set. to request a hardware interrupt, both the stai interrupt enable bit and the staf flag bit must be set. this bit is cleared by reset so that parallel i/o interrupts are inhibited. if this bit is set, an interrupt (irqn) will be generated every time the sfaf bit is set. cwom - bit 5, read / write when the cwom (port c wire-or mode) bit is zero, the port c output pins operate normally. when this bit is set to one, the port c outputs behave as open-drain type
tekmos tk68hc24 pru 6 www.tekmos.com 8/21/99 drivers allowing wired-or type external connections. when cwom equals one, the top driver device is disabled so that pins may be driven low by writing zeros or become three-state by writing ones. with an external pull-up resistor, the non-driven lines are pulled to logic ones. this permits port c output pins to be safely wired in parallel with similar cmos output drivers without fear of contentions which could otherwise cause destructive latch-up. this bit is cleared by reset so port c pins which are configured as outputs will operate normally. note that even when in the wired-or mode, the input protection diodes are still there, and so input voltages must never exceed vdd. hnds ? bit 4, read / write when hnds (handshake mode) bit is clear, the stra pin acts as a simple input strobe to latch incoming data into the portcl latch register and the strb pin acts as a simple output strobe that pulses after any write to port b. when hnds is set, it specifies that a handshake protocol involving port c, stra, and strb is in effect. in all modes, stra is an edge- sensitive input and strb is an output. this bit is cleared by reset. the strobe and handshake modes are described in greater detail in i/o ports. oin ? bit 3, read / write the oin (output or input handshake) bit has no meaning or effect unless hnds is set to one. when this bit is zero, input handshake protocol is specified. when this bit is a one, output handshake protocol is specified. see i/o ports for a more detailed description of the handshake protocols. pls ? bit 2, read / write the pls (pulse/interlocked handshake) bit has no meaning or effect unless hnds is set to one. when this bit is zero, interlocked handshake operation is specified. when this bit is one, pulse mode handshake operation is specified. in interlocked modes, the strb output line, once activated, remains active indefinitely until the selected edge is detected on the stra input line. in pulse modes, the strb output line, once activated, remains active for only two mcu e-clock cycles and then automatically reverts to the inactive state. this bit is cleared by reset. for more details on the handshake protocols, see i/o ports. ega ? bit 1, read / write the ega (active edge for stra) bit is used to specify which edge (rising or falling) on the stra input pin is to be considered the active edge. when this bit is zero, the active edge is the falling edge and when this bit is one, the active edge is the rising edge. this bit is set to one by reset. when output handshake mode is specified, this bit is used to control the portc three- state variation as well as select the active acknowledge edge. in the three-state variation, the ega bit specifies the trailing edge polarity for the stra input pin which is interpreted as the enable/acknowledge signal. assertion of stra overrides the ddrc specifications to force port c to be outputs and the edge of negation is the active edge acknowledge command. if ega is zero, the falling edge at stra is the active edge which causes staf to be set and strb to be negated. additionally, if ega is zero, port c bits obey the ddrc specification while stra is low but port c is forced to be an output when stra is high. if ega is one, the rising edge of stra is the active edge. this causes staf to be set and strb to be negated. in addition, port c bits obey the ddrc specification while stra is high, but port c is forced to be an output when stra is low. invb ? bit 0, read / write the invb (invert strobe b) bit is used to specify whether or not to invert the normal strobe b (strb) logic output levels. when this bit is one, no inversion is specified and the active level on the strobe b output line is logic one. when this bit is zero, inversion is specified and the active level on the
tekmos tk68hc24 pru 7 www.tekmos.com 8/21/99 strobe b output line is logic zero. this bit is set to one by reset so that the strb output will initially be in the low state out of reset. for a more detailed description of the handshake protocols, see the i/o ports section. port c data register (portc) reset value = 00000000 port c (portc) is a general purpose input/output port complemented by full handshake capability. for bits that are configured as inputs, reads of this address return the level sensed at the pin. for bits configured as outputs, reads return the level sensed at the input to the pin driver. when a port c pin is being used for the three-state variation of parallel output handshake, reads return the level sensed at the input to the pin driver even if the ddr bits suggest that the pin is configured as an input. writes to port c cause the value to be latched in the 8-bit port c data register. (note that this is not the same register as the portcl latch register described later.) when the corresponding ddrc bit is set, the value in the port c data register is driven out of the port c pin. this data latch allows the programmer to initialize the data prior to turning on the output drivers by setting bits in the ddrc. the portc register is cleared by reset. the port c bits are labeled as pc7 ? pc0. port b data register (portb) reset value = 00000000 port b (portb) is a general purpose output-only port. reads of this address return the level sensed at the input to the pin driver. writes to port b cause the value to be latched in the 8-bit port b data register. the portb register is set to zero by reset. the port b bits are labeled as pb7 ? pb0. port c latched data register (portcl) reset value = xxxxxxxx (not reset) the port c latch register (portcl) allows alternate access to port c information. this register is used in conjunction with the strobed parallel i/o modes. input data is latched into the portcl register on each selected edge on the stra pin. the latched data is the level at the pins regardless of the operating mode selected. reads of portcl return the contents of the port c input latch. reads also act as part of an automatic flag clearing sequence in the input handshake modes of port c. writes to the portcl register are equivalent to writes to the portc register except the portcl writes are used as part of an automatic flag clearing sequence in the output handshake modes of port c. for more information on the port c strobed and handshake modes, see i/o ports . the contents of portcl are not affected by reset. the port cl bits are labeled as pcl7 ? pcl0. data direction register c (ddrc) reset value = 00000000 the data direction register c (ddrc) is a read/write register used in conjunction with port c to specify the direction of data flow at each of the port c pins. a port c pin is an input if the corresponding bit in ddrc is zero. the pin is an output if the corresponding bit in ddrc is set to one. during reset, all bits in the ddrc are cleared to zero. the effects of ddrc are overridden in the three-state variation of the output handshake mode. for additional information, see i/o port operation, output handshake protocol, three-state variation . the port bits are labeled as ddrc7 ? ddrc0. highest priority interrupt register (hprio) reset value = 0*0*0000 note that the reset condition of smod and irv depends on initialization mode. smod ? bit 6, read / write once the smod (special test mode) bit is a read only bit which reflects the operating mode of the peripheral as selected by the mode input. the inverted state of mode is latched in smod by the rising edge of reset. when smod equals zero (mode equals one), the peripheral is operating in normal mode. when smod equals one (mode equals zero), the special test mode is selected. the special test mode may be exited under software control by writing smod from a one to a zero. however, the special test
tekmos tk68hc24 pru 8 www.tekmos.com 8/21/99 mode may not be re-entered by writing the bit back to one. this smod bit becomes write-protected once written to zero. this implies that the normal operating mode can be entered either through a hardware reset or through software while the special test mode may only be entered through hardware reset. irv ? bit 4, read, write once the irv (internal read visibility) control bit eliminates potential bus conflict problems when this device is used in conjunction with the 68hc11. to allow a logic analyzer to monitor the internal bus activity of the 68hc11, provisions have been made for the mpu to selectively drive the external data bus during internal reads as well as writes. the selection of this feature is controlled by the irv bit. the state following reset and the programming characteristics of the tk68hc24 irv bit are the same as the 68hc11 irv bit. however, the functional characteristics are the opposite. the tk68hc24 irv functions as follows: logic 0 ? reads of the init and hprio registers will enable the multiplexed address/data buffers, placing the contents of the selected register on the bus. logic 1 ? reads of the init and hprio registers do not enable the multiplexed address/data bus drivers. this bit may be read at any time, although the multiplexed address/data bus will remain high-impedance during reads when irv equals one. only one write will be acknowledged and then only if smod equals one. the irv bit is forced to zero (reads of hprio and init enabled) when smod is written from a one to a zero (entering normal mode). resets clears this bit in the normal mode and sets this bit in the special test mode. b7, b5, b3, b2, b1, b0 ? not implemented these bits are not implemented. writes have no meaning or effect on them. reads of these bits will always return a logic zero value. init (i/o mapping register) reset value = 00000001 the init (i/o mapping) register is a special purpose 8-bit register that is used (optionally) during initialization to change the default locations of the tk68hc24 internal registers in the mpu/mcu memory map. the lower four bits of the tk68hc24 init register are duplicates of the 68hc11 init register. these four bits are used to specify the active state of the four high order address bits to the register address decoding logic. this register functions identically to the 68hc11 init register with the following exceptions: 1) only the lower four bits are implemented, and 2) the protection mechanism is not time dependent. the default starting address of the 64-byte internal register space is $1x00 (i.e. init is initialized to $01). initialization software can move registers to any 4k boundary within the memory map. external decoding of a8 through a11 specifies where in the 4k block (on 256-byte boundaries) the 64-byte register space is located. as an example, assume that the initialization software wrote the value $09 to the init register and that cs was true when a8 through a11 were low. this would place the registers from $9000 through $903f in the memory map. decoding a8 through a11 so that the chip is selected when all four address lines are low maps the tk68hc24 registers to the same address as the 68hc11 registers. the init register is special in that there is a write- protect mechanism associated with it. in the normal mode, the register may be written once at any time after reset. this differs from the operation of the 68hc11 init register which becomes write protected after the first 64 e-clock cycles, whether or not a write to the register has occurred. after the first write, the init register becomes write-protected and thereafter is a read-only register. while in the special test mode (smod equals one), the protection mechanism is overridden and the init register may be written repeatedly as long as smod remains a one. when smod is written to a zero (to enter the normal operating mode), the write-protect mechanism is enabled. one additional write, regardless of the number of writes performed while in the special test mode, is allowed after entering normal operating mode. the upper four bits of the init register are unused, and will always read as zeros.
tekmos tk68hc24 pru 9 www.tekmos.com 8/21/99 i/o port operation there are two 8-bit parallel i/o ports on the tk68hc24. port b is a general purpose output- only port. port c may be used as general purpose input and/or output pins, as specified by the ddrc register. in conjunction with stra and strb, ports b and c may be used for special strobed and handshake modes of parallel i/o as well as general i/o. fixed direction i/o (port b) port b is a general purpose output-only port. the data direction is fixed in order to properly emulate the operation of the 68hc11 port b. reads of port b return the levels sensed at the input of the pin drivers. write data is stored in an internal latch which directly drives the output pin driver. reset clears the data register, forcing the outputs low. general purpose i/o (port c) when used as a general purpose i/o port, each pin has associated with it one bit in the port c data register and one bit in the corresponding position in the data direction register (ddrc). the ddrc is used to specify the primary direction of data on the i/o pin. however, specification of a line as an output does not disable the ability to read the line as a latched input. when a bit which is configured as an output is read, the value returned will be the value at the input to the pin driver. when a pin is configured as an input (by clearing the ddrc bit) then pin becomes a high-impedance input. when writing to a bit that is configured as an input, the value will not affect the i/o pin. however, the bit will be stored in the portc latch, and will drive the pin should the ddrc register ever be set. this operation can be used to preset a value for an output port prior to configuring it as an output, so that glitches of an output state which are not defined for the external system may be avoided. reset configures the port for input by clearing both the ddrc and portc registers. simple strobed i/o the simple strobed mode of parallel i/o is selected when the hnds bit in the pioc (parallel i/o control) register is clear. this mode forces portcl to be a strobed input port with the selected edge of the stra pin used to latch the data. port b becomes a strobed output port with the strb pin acting as the output strobe. strobed input port c even in the input mode, the ddrc register still controls the direction of the port c pins. as a result, if a bit in the ddrc register is set, that bit still acts as an output from the port c register. depending on the edge selected by the ega bit in the pioc register, either the positive edge (ega = 1) or the negative edge (ega = 0) of the stra strobe will latch the values on the port c pins into the portcl register. the action will also set the staf bit in the pioc register. if the stai bit in the pioc register is also set, then an interrupt sequence is requested in the irqn pin. the staf flag is automatically cleared by reading the pioc register (with staf set ), followed by a read of the portcl register. additional active edges of the stra pin will continue to latch new data into the portcl register, regardless of the state of the staf flag. consecutive active edges of the stra signal must be a minimum of two e-clock cycles apart. reads of the portcl register return the last value latched. reads of the portc register return either the in value for inputs or the contents of the portc register for outputs. strobed output port b in this mode, the strb pin is a strobe output which is pulsed each time there is a write to port b. full handshake i/o the full handshake modes of parallel i/o use port c, the ddrc port, stra, and strb. there are the two basic modes of input and output, and an additional variation on the output handshake mode that allows for three-state operation of port c. in all handshake modes, stra is an edge detecting input and strb is a handshake output line. input handshake protocol in the input handshake mode, port c is a latching input port, stra is an edge-sensitive latch command from the external system that is driving port c and strb is a ready output line controlled by logic in the tk68hc24. in a typical system, an external device wishing to write to port c would test the ready line (strb). when a ready condition was recognized, the external device would place data on the port c inputs and then pulse the stra input to the tk68hc24. the active edge on the stra line would latch the port c data into the portcl register, set the staf flag (optionally causing an
tekmos tk68hc24 pru 10 www.tekmos.com 8/21/99 interrupt), and deassert the ready line (strb). deassertion of the ready line would automatically inhibit the external device from strobing new data into port c. reading the portcl latch register, after reading pioc with staf set, clears the staf flag. whenever portcl is read, the ready (strb) line is asserted indicating that new data may now be strobed in to port c. the strb line can be configured (with the pls control bit) to be a pulse output (pulse mode) or a static output (interlocked mode). the only difference between the pulse and interlock modes is that in pulse mode, the ready line pulses (asserts) for only two e-clock periods after the latched data becomes available. while in interlock mode, the asserted state of the ready line lasts until new data is strobed into port c via the stra input line. the port c ddr bits should be cleared (input) for each bit that is to be used as a latched input bit. it is, however, possible to use some port c bits as latched inputs with the input handshake protocol and at the same time use other port c bits as static inputs and still other port c bits as static output bits. the input handshake protocol has no effect on the use of port c bits as static inputs or static outputs. reads of the portc register always return the static logic level at the port c pins (for lines configured as input) or at the inputs to the pin drivers (for lines configured as outputs). data latched into portcl always reflects the level at the port c pins. writes to either the portc address or the portcl address will write information to the port c output register without affecting the input handshake strobes. note: after programming pioc to enter the input handshake mode, strb will remain in the inactive state. the precaution has been taken to ensure that the external system will not strobe data into portcl before all initialization is complete. when ready to accept data, the mpu/mcu should perform a dummy read of the portcl address. this operation will assert strb initiating the input handshake protocol. output handshake protocol in the output handshake scheme, port c is an output port, strb is a ready output, and stra is an edge-sensitive acknowledge input signal indicating that port c output data has been accepted by the external device. in a variation of this output handshake operation, stra is used as an output enable input as well as an edge-sensitive acknowledge input. in a typical system, the controlling processor writes to the tk68hc24, placing data in the port c output latch. stable data on the port c pins is indicated by the automatic assertion of the tk68hc24 ready (strb) line. the external device then processes the available data and pulses the stra input to indicate the new data may be placed on the port c output lines. the active edge on stra causes the ready (strb) line to be automatically deasserted and the staf status flag to be set (optionally causing an interrupt). in response to staf being set, the program puts out new data on port c as required. there are two addresses associated with the port c data register, the normal portc data address and a second address (portcl) that accesses the input latch on reads and the normal port on writes. on writes to the second address (portcl), the data goes to the same port output register as it would on a write to the portc address but the staf flag bit is cleared (provided pioc was first read with the staf bit set). this allows an automatic clearing mechanism in output handshake modes to co-exist with normal port c outputs. all eight bits in port c must be used as outputs while the output handshake protocol is selected. that is, part of port c may not be used for static or latched inputs while the remaining bits are being used for output handshake. the following paragraphs cover this limitation in more detail. output handshake protocol, three-state variation there is a variation to the output handshake protocol that allows three-state operation of port c. it is possible to directly interconnect this 8-bit parallel port to other 8-bit three-state devices with no additional external parts. the stra signal is used as an acknowledge/enable input whose sense is controlled by the ega bit in the pioc register. the ega bit specifies the transition from the asserted to the deasserted state of the stra input signal. if ega is zero, the asserted state is high and falling edges are interpreted as acknowledge signals. if ega is one, the asserted state is low and rising edges are interpreted as acknowledge signals. as long as the stra input pin is negated, all port c bits obey the data direction specified by ddrc. bits which are configured as inputs (ddr bit equals zero) will be high impedance. when the stra
tekmos tk68hc24 pru 11 www.tekmos.com 8/21/99 input is asserted, all port c lines are forced to be outputs regardless of the data in ddrc. this operation limits the ability to use some port c bits as static inputs while using others as handshake outputs. however, it does not interfere with the use of some port c bits as static outputs while others are being used as three-state handshake outputs. port c bits which are to be used as static outputs or normal handshake outputs should have their corresponding ddrc bits set. bits which are to be used as three-state handshake outputs should have their corresponding ddrc bits clear. interaction of handshake and general purpose i/o there are two addresses associated with the port c data register: the normal portc address and a second address (portcl) that accesses the input latch on reads and the normal port on writes. on writes to the second address (portcl), the data goes to the same port output register as it would on a write to the port output address. when operating in the output handshake mode, writing to portc will not clear the staf bit whereas writing to portcl will clear it. this allows an automatic clearing mechanism to co-exist with normal port c outputs. when full input handshake protocol is specified, both general purpose input and/or general purpose output can co-exist at port c. however, the three- state feature of the output handshake mode interferes with general purpose inputs in two ways. first, in full output handshake, the port c pins are forced to be driven outputs during any period in which stra is in its active state regardless of the state of the ddrc bits. this potentially conflicts with any device trying to drive port c unless the external device has an open-drain type output driver. secondly, the value returned on reads of port c is the state at the inputs to the pin drivers regardless of the state of the ddrc bits. this allows data written for output handshake to be read even if the pins are in a three-state condition. the following is an example of port c being used for full input handshake, general purpose input, and general purpose output all at the same time. assume that the pioc and ddrc control registers are set up as follows: pioc = 0111_0000 ddrc = 0000_1100 in this example, port c bit b7 through b4 will be used for input handshake, bits b3 and b2 will be used as open-drain type general purpose outputs, and bits b0 and b1 will be used as general purpose inputs. the ddrc register is configured such that bits b2 and b3 are outputs and the rest of the port c bits are inputs. the pioc register is configured such that full-input handshake is specified (hnds equals one and oin equals zero), cwom equals one so any pins in port c which are configured as outputs will behave as open-drain type outputs. the other bits in pioc are not important for the discussion of this example. when data is latched into portcl according to the input handshake protocol, all eight bits are captured although only the four msbs are of interest to the input handshake software. the data latched into all eight bits of portcl will be the levels present at port c pins. software driving the bits b2 and b3 general-purpose outputs would perform writes to portc which would not affect the handshake protocol or the latching of data into portcl. data written to port c bits b0, b1, and b4 through b7 would also be latched into the internal port c output latch but since the corresponding ddrc bits are zeros, the corresponding port c pins would remain unaffected. bit manipulation and read-modify-write instructions could be used on portc because reads of portc do not affect the input handshake functions. although writes to portcl would also cause data to be written to port c, this address should not be used for general purpose output. this is because bit manipulation and read-modify- write instructions read the location before writing to it and this read would interfere with the input handshake protocol. finally, to use bits 0 and 1 for general purpose inputs, simply read portc which will return the desired information and will not interfere with the input handshake protocol. note that the current state of the port c bits b4 through b7 are also read; therefore, even the pins which are being used for input handshake can be read at any time without disturbing the input handshake function.
tekmos tk68hc24 pru 12 www.tekmos.com 8/21/99 system configuration the tk68hc24 allows an end user to configure the peripheral to his specific mcu system through the use of hard wired options such as the mode select pin (mode) and by the use of internal registers under software control. the following section describes those options which are fixed through hardware. other configuration options, which can be changed dynamically, are discussed in the sections entitled i /o ports and modes of operation . mode selection a dedicated mode select pin (mode) determines which of two operating modes the tk68hc24 enters out of reset. both modes properly emulate the action of ports b and c of the 68hc11. the modes are the normal and special test modes. the state of the mode select pin (mode) is latched into the peripheral by the rising edge of reset with the inverse of the latched value reflected in the smod bit of the hprio register. normal mode is indicated by smod equals zero (mode equals one). special test mode is indicated by smod equals one (mode equals zero). the difference between these two modes is limited to the operation of the init and hprio registers. the mode input corresponds (in function, but not voltage levels) to the modb/vpgm input of the 68hc11. the 68hc11 requires either v d d or a level 1.8 x v dd on the modb pin to select the operating mode; whereas, the tk68hc24 requires only logic level signals. the 1.8 x v dd level required by the 68hc11 corresponds to a logic low on the tk68hc24. the v dd level required by the 68hc11 corresponds to a logic high on the tk68hc24. in normal operation, the special test mode is not used and the mode pin on both the 68hc11 and the tk68hc24 can be tied to v dd . state after reset when a low level is sensed on the reset pin, the tk68hc24 enters the reset state. most of the registers and control bits are forced to a specific state during reset and, if a user requires a different configuration, he must write the desired values into these registers in his initialization software. for detailed information about the options available, see internal register description. note that reset is synchronized to the system clock (e) before being used internally. for this reason, reset must be held low for a minimum of two e-clock cycles to be recognized. once recognized, the peripheral is initialized as described below. most of the configuration state after reset is independent of the selected operating mode. the staf, stai, and hnds bits in the pioc register are initialized to zeros so that no interrupt is pending or enabled and the simple strobed mode (rather than full handshake modes) of parallel i/ o is selected. the cwom bit is initialized to zero (port c not operating in wire-or mode). port c is initialized as a general purpose, high-impedance input port (ddrc equals $00), stra as an edge- sensitive strobe input, and the active edge is initially configured to detect rising edges (ega bit set to one by reset). the strb strobe output is initially a zero (invb bit is initialized to one), while port b is initialized with all outputs forced low. the smod and irv bits in the hprio register reflect the status of the mode input at the rising edge of reset. reset also deselects the chip and forces the multiplexed address/data bus to high impedance inputs. modes of operation special test mode the special test mode is selected with mode equal to zero at the rising of edge of reset. initialization into this mode loads hprio with $50 (smod and irv equal one) and disables the init register write- protect mechanism. while in special test mode (smod bit equals one), the init register write-protect mechanism is overridden and init remains writable as long as smod remains one. when smod is written to a zero (to enter the normal operating mode), the write-protect mechanism is enabled. one additional write is allowed after entering normal operating mode regardless of the number of writes performed while in the special test mode. the reset state of irv is one in the special test mode. an attempted read of either the init or hprio register with irv equal to one will leave the data bus in a high impedance state with the output buffers disabled. if irv equals zero, the data buffers are enabled and the contents of the selected register are placed on the data bus. the irv bit is writable only one time while in the special
tekmos tk68hc24 pru 13 www.tekmos.com 8/21/99 test mode. entering the normal mode forces the irv bit to zero, enabling the data bus output buffers on reads of these two addresses. table 1 summarizes the chip select options. table 1. tk68hc24 chip select action summary csn irv action taken 0 0 chip selected, hprio and init reads enabled. 0 1 chip selected. hprio and init reads disabled 1 x chip not selected normal mode normal mode is selected when the mode input is at a logic high level at the rising edge of reset. the hprio register is initialized to $00 (smod and irv equal zero). the init register write-protect mechanism is enabled, allowing only a single write to init. reads of both the init and hprio register enable the output buffers, thus providing visibility into the contents of these registers. the hprio register is write-protected while in the normal mode. a reset sequence must be initiated to change the contents of this register. note a write to the init register must be included in the initialization software whether or not the registers are to be relocated. this write will ensure that an accidental write to register at a later time will not cause the registers to be remapped. this is one of the functional differences between the 68hc11 ports and the tk68hc24 implementation.
tekmos tk68hc24 pru 14 www.tekmos.com 8/21/99 differences between the motorola and tekmos version of the tk68hc24 1. the tk68hc24 is a new design, and is manufactured in a 0.8u cmos process. the design has been modified to compensate for the faster process in order to retain compatibility with the older parts. 2. all inputs now have schmitt triggers. inputs fabricated on the new process will be faster. that makes them more sensitive to noise spikes, and they require faster rise times to avoid input oscillation. the insertion of schmitt triggers on all inputs and bi-directional signals removes this sensitivity. the new parts still meet all of the original input level specifications. 3. reset has been modified. in the original circuit, it was possible to trigger a partial chip reset by the presence of a well placed glitch on the reset line. the faster tekmos implementation might respond to noise on the reset line that would not affect the original parts. the modification requires the presence of reset for at least 1/2 e clock before it is recognized. this is consistent with the specification, which requires users to keep the e clock low for two entire clock cycles. 4. the iotest pin has been removed from the documentation. this pin was not present on the old 68hc24s. 68hc11 and tk68hc24 operational differences init register write-protect mechanism the 68hc11 init register write-protect mechanism automatically disables writes to the init register 64 e clock cycles after the rising edge of reset. the tk68hc24 write-protect circuitry is not time dependent. only a write to the init register will disable further writes. both the 68hc11 and tk68hc24 init registers can be written repeatedly in the special test mode of operation (see special test mode) or once in the normal mode. this difference dictates that the user should not rely on the timeout feature of the 68hc11 to write- protect the init register if he plans to utilize the same software with the tk68hc24. instead, a write to the init register should be done during initialization, even if the remapping feature is not going to be used. stra pulse width due to differences in implementation technology, the tk68hc24 incorporates an additional level of synchronization (over the 68hc11) on the stra input. under normal operating conditions, the end user will be unaware of this anomaly. only systems which continually strobe new data into portcl are affected. in order to allow the stra signal to propagate through the internal feedback mechanism, a minimum delay of two e-clock cycles between active edges has been specified. this delay should not concern most users, since the time required to acknowledge the receipt of data and to read the data is much greater that two cycles. strb synchronization the 68hc11 synchronizes changes of port b, port c, and strb data to an internal quadrature clock. this method of implementation makes internal buffer delays transparent to the end user. this internal clock is generated from the 4x clock, and as a result, cannot be duplicated by the tk68hc24. port b and port c data are synchronized to the e clock and become valid t pwd after the falling edge of e instead of a setup time before the falling edge of e. the most noticeable change involves strb. the strb signal is synchronized to the rising edge of e instead of the quadrature clock as in the 68hc11. at slow clock rates (much less than 1mhz), the delay between valid data on the port pins and the assertion of strb could be considerable.
tekmos tk68hc24 pru 15 www.tekmos.com 8/21/99 maximum ratings characteristics symbol min max unit supply voltage vdd -0.5 7.0 v input voltage vin vss ? 0.5 vdd + 0.5 v current drain per pin imax 25 ma operating temperature range ta -40 85 o c storage temperature range tstg -55 +150 o c dc electrical specifications (vdd = 5.0 v +/- 10%, vss = 0 v, ta = -40 o c to +85 o c) characteristics symbol min max unit output voltage (iload = +/- 10 ua) all outputs all outputs except irqn (note 1) vol voh - vdd - 0.1 0.1 - v output low voltage (iload = 1.6 ma) vol - 0.4 v output high voltage (iload = -0.8 ma, vdd = 4.5 v) all outputs except irqn (note 1) voh vdd - 0.8 - v input low voltage all inputs vil vss 0.2 x vdd v input high voltage all inputs vih 0.7 x vdd vdd v 3-state leakage (vin = vss or vdd) pc0-pc7, ad0-ad7 ioz - +/- 10 ua input current (vih = vdd or vss) e, as, r/wn, csn, mode, a12-a15, stra iin - +/- 1 ua total supply current (note 2) idd - 5 ma input capacitance cin - - 8.0 12.0 pf power dissipation pd - 25 mw note 1. irqn is an open-drain output. voh does not apply. note 2. measured with port c, csn = 0 v., resetn, mode, r/wn = vdd, reading port 2 each cycle. mode selection electrical characteristics (vdd = 5.0 v +/- 10%, vss = 0 v, ta = 25 o c) characteristic symbol min typ max unit mode programming voltage low vmpl 0 - 0.2 x vdd v mode programming voltage high vmph 0.7 x vdd - vdd v resetn low input pulse width pwrstl 2 - - ecyc mode programming setup time t mps 2 - - ecyc mode programming hold time t mph 0 - - ecyc resetn mode pw rstl t mph t mps figure 2. mode selection timing
tekmos tk68hc24 pru 16 www.tekmos.com 8/21/99 peripheral port timing (vdd = 5.0 v + 10%, all timing is shown with respect to 20% vdd and 70% vdd unless otherwise noted.) characteristics symbol min max unit fig. no. peripheral data setup time (post c) t pdsu 200 - ns 4 peripheral data hold time (post c) t pdh 10 - ns 4 delay time, e negative transition to peripheral data valid (ports b and c, see note 1) t pwd - 100 ns 3 input data setup time (port c) t is 50 - ns 6, 7 input data hold time (port c) t ih 10 - ns 6, 7 delay time, e positive transition to strb asserted (see note 1) t deb - 80 ns 5, 8, 9 delay time, e positive transition to strb negated handshake mode (see note 1) t debn - 80 ns 7, 9 setup time, stra asserted to e negative transition (see note 2) t aes 0 - ns 7, 8, 9 delay time, stra asserted to port c data out valid (see note 3) t pcd - 100 ns 9 hold time, stra negated to port c data t pch 10 - ns 9 three-state hold time t pcz - 150 ns 9 stra cycle time t scyc 2 - e cyc 6,7 notes: 1. the method of calculating the timing for this characteristic differs from the 68hc11. 2. if this setup time is met, strb will be acknowledged in the next cycle. if it is not met, the response will be delayed one more cycle. 3. port c timing is only valid for active drive (cwom bit is not set in pioc).
tekmos tk68hc24 pru 17 www.tekmos.com 8/21/99 t pwd e data out data valid figure 3. port write timing mpu write e data in non-latched figure 4. port c static read timing t pdh t pdsu mpu read mpu write e port b strb t pwp t deb figure 5. simple output strobe timing
tekmos tk68hc24 pru 18 www.tekmos.com 8/21/99 stra port c valid t scyc t ih t is figure 6. simple input strobe timing e strb stra data in valid figure 7. port c input handshake timing t debn t scyc t aes t is t ih e data out strb stra figure 8. port c output handshake timing t pdv t deb t aes
tekmos tk68hc24 pru 19 www.tekmos.com 8/21/99 e strb figure 9. port c three - state output handshake timing t deb stra t pch data out ddrc=0 stra data out ddrc=0 data out ddrc=1 data valid data valid data valid old data b) stra after internal data valid a) stra before internal data valid t pch t pcd t pdv t aes t debn
tekmos tk68hc24 pru 20 www.tekmos.com 8/21/99 bus timing characteristics (vdd = 5.0 v + 10%, vss = 0 v, ta = -40 o c to +85 o c unless otherwise noted; see figure 10 for detailed timing diagrams) 1 mhz 2.1 mhz ident. number characteristic symbol min max min max unit 1 cycle time tcyc 1000 - 476 - ns 2 pulse width, e low pwel 430 - 200 - ns 3 pulse width, e high pweh 450 - 210 - ns 4 input and clock rise and fall time tr, tf - 25 - 20 ns 8 rwn hold time trwh 20 - 10 - ns 13 setup time before rising edge of e (rwn, csn) trws 100 - 50 - ns 15 chip select hold time (csn) tcsh 20 - 20 - ns 18 read data hold time tdhr 10 75 10 75 ns 21 write data hold time tdhw 10 - 10 - ns 24 muxed address valid time to as fall tasl 60 - 30 - ns 25 muxed address hold time tahl 40 - 20 - ns 26 delay time, e fall to as rise tasd 60 - 30 - ns 27 as pulse width high twash 150 - 75 - ns 28 as fall to e rise tased 60 - 30 - ns 30 peripheral output data delay time from e rise (read) tddr 20 240 10 120 ns 31 peripheral data setup time (write) tdsw 150 - 75 - ns 27 28 28 2 3 figure 10. bus timing diagram as e a12 - a15, rwn csn ad0 - 7 (write) ad0 - 7 (read) 8 15 13 24 25 21 18 30 31 1
tekmos tk68hc24 pru 21 www.tekmos.com 8/21/99 package dimensions tk68hc24fn - 44 plcc package dimension specification (inches) package width 0.654 width including leads 0.690 package thickness 0.152 lead width 0.029 lead spacing 0.050 TK68HC24P - 40 pdip package dimension specification (inches) package width 0.600 width including leads 0.610 package length 2.050 lead width 0.018 lead spacing 0.100 tk68hc24 core this part is also available as a verilog rtl level core. please contact the factory for details. sales information parts may be ordered directly from tekmos: by phone at 512 342-9871 x204, or by e-mail at sales@tekmos.com, or by web at www.tekmos.com visa or mastercard accepted. tekmos, inc. 8834 n capital of texas hwy, suite 250 austin, texas 78759 512 342-9871 512 342-9873 fax


▲Up To Search▲   

 
Price & Availability of TK68HC24P

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X